//配置vue-router
import Home from './components/login/Home.vue'
import News from './components/login/News.vue'

//返回一个字符串
export default{
    routes:[
        //访问/home路由，显示Home组件
        {path:'/home',component:Home},
        {path:'/news',component:News},
        //配置重定向
        {path:'*',redirect:'/home'}
    ]
}